package com.kaizzi.data.jdl.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaizzi.data.common.been.TempBeen;
import com.kaizzi.data.jdl.entity.Dingdan;
import com.kaizzi.data.jdl.mapper.DingdanMapper;
import com.kaizzi.data.jdl.service.DingdanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Kzen
 * @Description description
 * @date 2020/9/15
 */
@Service
@Slf4j
public class DingdanServiceImpl extends ServiceImpl<DingdanMapper, Dingdan> implements DingdanService {

    @Resource
    private DingdanMapper dingdanMapper;

    @Override
    @DS("jdl_view")
    public List<TempBeen> getWesSales(String endDate) {
        return dingdanMapper.getWesSales(endDate);
    }
}
